home *** CD-ROM | disk | FTP | other *** search
- Path: news.arrowsmith.com!news
- From: Sylvia Tien <tienys>
- Newsgroups: comp.lang.c++
- Subject: enum in derived class on different platforms
- Date: 30 Jan 1996 22:56:41 GMT
- Organization: Arrowsmith Technologies Inc.
- Message-ID: <4em7n9$jk4@fireman.arrowsmith.com>
- NNTP-Posting-Host: spruce.arrowsmith.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.05 9000/712)
- X-URL: news:comp.lang.c++
-
- Question:
- Does enum in derived class acts differently on different platforms?
-
- Background:
- The way enum works on HP:
- base class B:
- enum TYPE {type1=1, type2=2}
- derived class D:
- enum TYPE {type2=0, type3=3}
-
- D sees type1=1 and overwrites type2.
-
-
- --
-
- ========================================
- Arrowsmith Technologies, Inc.
- 8920 Business Park Drive
- Austin, Texas 78759
- (512) 349-8351
- sylvia_tien@arrowsmith.com
- ========================================
-
- Success isn't the result of hard work alone;
- it's mostly the result of right thinking.
-
- -- U.S. Anderson
-
-